package com.zhuo.project.order.domain;

import com.zhuo.framework.aspectj.lang.annotation.Excel;
import com.zhuo.framework.web.domain.BaseEntity;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 处方单操作历史对象 zz_diagnose_opt_log
 * 
 * @author zhuo
 * @date 2020-03-26
 */
public class ZzDiagnoseOptLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 就诊号 */
    @Excel(name = "就诊号")
    private String encounterId;

    /** 处方单号 */
    @Excel(name = "处方单号")
    private String diagnoseId;

    /** 审核人ID */
    @Excel(name = "审核人ID")
    private Long auditorId;

    /** 最后审核人 */
    @Excel(name = "最后审核人")
    private String auditorName;

    /** 最后审核时间 */
    @Excel(name = "最后审核时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date auditorTime;

    /** 状态（0 未审核 1审核通过 2审核未通过  3 从新审核，4 无需审核） */
    @Excel(name = "状态", readConverterExp = "0=,未=审核,1=审核通过,2=审核未通过,3=,从=新审核，4,无=需审核")
    private Integer auditStatus;

    /** 是否需要审核（0 不需要审核 1 需要审核 ） */
    @Excel(name = "是否需要审核", readConverterExp = "0=,不=需要审核,1=,需=要审核")
    private Integer isAudit;

    /** 审核内容 */
    @Excel(name = "审核内容")
    private String auditContent;

    /** 是否配药（0 否  1 是 2 部分配） */
    @Excel(name = "是否配药", readConverterExp = "0=,否=,1=,是=,2=,部=分配")
    private Integer isEquip;

    /** 是否发药（0 否  1 是 2 部分发 ） */
    @Excel(name = "是否发药", readConverterExp = "0=,否=,1=,是=,2=,部=分发")
    private Integer isSend;

    /** 状态（0正常 1关闭） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=关闭")
    private Integer isValid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEncounterId(String encounterId) 
    {
        this.encounterId = encounterId;
    }

    public String getEncounterId() 
    {
        return encounterId;
    }
    public void setDiagnoseId(String diagnoseId) 
    {
        this.diagnoseId = diagnoseId;
    }

    public String getDiagnoseId() 
    {
        return diagnoseId;
    }
    public void setAuditorId(Long auditorId) 
    {
        this.auditorId = auditorId;
    }

    public Long getAuditorId() 
    {
        return auditorId;
    }
    public void setAuditorName(String auditorName) 
    {
        this.auditorName = auditorName;
    }

    public String getAuditorName() 
    {
        return auditorName;
    }
    public void setAuditorTime(Date auditorTime) 
    {
        this.auditorTime = auditorTime;
    }

    public Date getAuditorTime() 
    {
        return auditorTime;
    }
    public void setAuditStatus(Integer auditStatus) 
    {
        this.auditStatus = auditStatus;
    }

    public Integer getAuditStatus() 
    {
        return auditStatus;
    }
    public void setIsAudit(Integer isAudit) 
    {
        this.isAudit = isAudit;
    }

    public Integer getIsAudit() 
    {
        return isAudit;
    }
    public void setAuditContent(String auditContent) 
    {
        this.auditContent = auditContent;
    }

    public String getAuditContent() 
    {
        return auditContent;
    }
    public void setIsEquip(Integer isEquip) 
    {
        this.isEquip = isEquip;
    }

    public Integer getIsEquip() 
    {
        return isEquip;
    }
    public void setIsSend(Integer isSend) 
    {
        this.isSend = isSend;
    }

    public Integer getIsSend() 
    {
        return isSend;
    }
    public void setIsValid(Integer isValid) 
    {
        this.isValid = isValid;
    }

    public Integer getIsValid() 
    {
        return isValid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("encounterId", getEncounterId())
            .append("diagnoseId", getDiagnoseId())
            .append("auditorId", getAuditorId())
            .append("auditorName", getAuditorName())
            .append("auditorTime", getAuditorTime())
            .append("auditStatus", getAuditStatus())
            .append("isAudit", getIsAudit())
            .append("auditContent", getAuditContent())
            .append("isEquip", getIsEquip())
            .append("isSend", getIsSend())
            .append("isValid", getIsValid())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
